/* index.css */

/* 页面基础样式 */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
  }
  
  /* 聊天容器 */
  .chat-container {
    max-width: 600px;
    margin: 50px auto;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  
  /* 聊天头部 */
  .chat-header {
    background-color: #007acc;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 20px;
  }
  
  /* 聊天内容区域 */
  .chat-box {
    padding: 15px;
    height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid #ddd;
  }
  
  /* 聊天消息 */
  .chat-message {
    padding: 8px 12px;
    border-radius: 5px;
    max-width: 80%;
    word-wrap: break-word;
  }
  
  /* 用户消息 */
  .user {
    background-color: #dcf8c6;
    align-self: flex-end;
    text-align: right;
  }
  
  /* 机器人消息 */
  .bot {
    background-color: #f1f0f0;
    align-self: flex-start;
    text-align: left;
  }
  
  /* 聊天输入区 */
  .chat-input {
    display: flex;
    border-top: 1px solid #ddd;
  }
  
  .chat-input input {
    flex: 1;
    padding: 10px;
    border: none;
    font-size: 16px;
  }
  
  .chat-input button {
    background-color: #007acc;
    border: none;
    color: #fff;
    padding: 0 20px;
    cursor: pointer;
  }